Optimal. Leaf size=131 \[ -\frac {a \cos ^{1+m}(c+d x) \, _2F_1\left (\frac {1}{2},\frac {1+m}{2};\frac {3+m}{2};\cos ^2(c+d x)\right ) \sin (c+d x)}{d (1+m) \sqrt {\sin ^2(c+d x)}}-\frac {b \cos ^{2+m}(c+d x) \, _2F_1\left (\frac {1}{2},\frac {2+m}{2};\frac {4+m}{2};\cos ^2(c+d x)\right ) \sin (c+d x)}{d (2+m) \sqrt {\sin ^2(c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 131, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2827, 2722}
\begin {gather*} -\frac {a \sin (c+d x) \cos ^{m+1}(c+d x) \, _2F_1\left (\frac {1}{2},\frac {m+1}{2};\frac {m+3}{2};\cos ^2(c+d x)\right )}{d (m+1) \sqrt {\sin ^2(c+d x)}}-\frac {b \sin (c+d x) \cos ^{m+2}(c+d x) \, _2F_1\left (\frac {1}{2},\frac {m+2}{2};\frac {m+4}{2};\cos ^2(c+d x)\right )}{d (m+2) \sqrt {\sin ^2(c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2722
Rule 2827
Rubi steps
\begin {align*} \int \cos ^m(c+d x) (a+b \cos (c+d x)) \, dx &=a \int \cos ^m(c+d x) \, dx+b \int \cos ^{1+m}(c+d x) \, dx\\ &=-\frac {a \cos ^{1+m}(c+d x) \, _2F_1\left (\frac {1}{2},\frac {1+m}{2};\frac {3+m}{2};\cos ^2(c+d x)\right ) \sin (c+d x)}{d (1+m) \sqrt {\sin ^2(c+d x)}}-\frac {b \cos ^{2+m}(c+d x) \, _2F_1\left (\frac {1}{2},\frac {2+m}{2};\frac {4+m}{2};\cos ^2(c+d x)\right ) \sin (c+d x)}{d (2+m) \sqrt {\sin ^2(c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 112, normalized size = 0.85 \begin {gather*} -\frac {\cos ^{1+m}(c+d x) \csc (c+d x) \left (a (2+m) \, _2F_1\left (\frac {1}{2},\frac {1+m}{2};\frac {3+m}{2};\cos ^2(c+d x)\right )+b (1+m) \cos (c+d x) \, _2F_1\left (\frac {1}{2},\frac {2+m}{2};\frac {4+m}{2};\cos ^2(c+d x)\right )\right ) \sqrt {\sin ^2(c+d x)}}{d (1+m) (2+m)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.10, size = 0, normalized size = 0.00 \[\int \left (\cos ^{m}\left (d x +c \right )\right ) \left (a +b \cos \left (d x +c \right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \cos {\left (c + d x \right )}\right ) \cos ^{m}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\cos \left (c+d\,x\right )}^m\,\left (a+b\,\cos \left (c+d\,x\right )\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________